/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package telas;

/**
 *
 * @author Dentinho
 */
public class TelaInicial extends javax.swing.JFrame {

    /**
     * Creates new form TelaInicial
     */
    public TelaInicial() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenuCadastros = new javax.swing.JMenu();
        CadastroCliente = new javax.swing.JMenuItem();
        CadastroProduto = new javax.swing.JMenuItem();
        CadastrarFuncionario = new javax.swing.JMenuItem();
        cadastrarFornecedor = new javax.swing.JMenuItem();
        CadastrarMateria = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        VendaCliente = new javax.swing.JMenuItem();
        RealizarPedido = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Padaria Bom Sabor");
        setPreferredSize(new java.awt.Dimension(800, 600));
        setResizable(false);

        jMenuCadastros.setMnemonic('C');
        jMenuCadastros.setText("Cadastros");

        CadastroCliente.setText("Cliente");
        CadastroCliente.setToolTipText("");
        CadastroCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CadastroClienteActionPerformed(evt);
            }
        });
        jMenuCadastros.add(CadastroCliente);

        CadastroProduto.setText("Produto");
        CadastroProduto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CadastroProdutoActionPerformed(evt);
            }
        });
        jMenuCadastros.add(CadastroProduto);

        CadastrarFuncionario.setText("Funcionario");
        CadastrarFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CadastrarFuncionarioActionPerformed(evt);
            }
        });
        jMenuCadastros.add(CadastrarFuncionario);

        cadastrarFornecedor.setText("Fornecedor");
        cadastrarFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastrarFornecedorActionPerformed(evt);
            }
        });
        jMenuCadastros.add(cadastrarFornecedor);

        CadastrarMateria.setText("Matéria Prima");
        CadastrarMateria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CadastrarMateriaActionPerformed(evt);
            }
        });
        jMenuCadastros.add(CadastrarMateria);

        jMenuBar1.add(jMenuCadastros);

        jMenu2.setText("Vendas");

        VendaCliente.setText("Venda Cliente");
        VendaCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                VendaClienteActionPerformed(evt);
            }
        });
        jMenu2.add(VendaCliente);

        RealizarPedido.setText("Realizar Pedido");
        RealizarPedido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RealizarPedidoActionPerformed(evt);
            }
        });
        jMenu2.add(RealizarPedido);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 566, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 415, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void CadastroClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastroClienteActionPerformed
        CadastroCliente cadastro = new CadastroCliente();
        cadastro.setEnabled(true);
        cadastro.setVisible(true);
        cadastro.setModal(true);
    }//GEN-LAST:event_CadastroClienteActionPerformed

    private void CadastroProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastroProdutoActionPerformed
        CadastroProduto produto = new CadastroProduto();
        produto.setEnabled(true);
        produto.setVisible(true);
        produto.setModal(true);
    }//GEN-LAST:event_CadastroProdutoActionPerformed

    private void CadastrarFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastrarFuncionarioActionPerformed
        CadastroFuncionario funcionario = new CadastroFuncionario();
        funcionario.setEnabled(true);
        funcionario.setVisible(true);
        funcionario.setModal(true);
    }//GEN-LAST:event_CadastrarFuncionarioActionPerformed

    private void VendaClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VendaClienteActionPerformed
        RealizarVenda vendaCliente = new RealizarVenda();
        vendaCliente.setEnabled(true);
        vendaCliente.setVisible(true);
        vendaCliente.setModal(true);
    }//GEN-LAST:event_VendaClienteActionPerformed

    private void cadastrarFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastrarFornecedorActionPerformed
        CadastroFornecedor fornecedor = new CadastroFornecedor();
        fornecedor.setEnabled(true);
        fornecedor.setVisible(true);
        fornecedor.setModal(true);
    }//GEN-LAST:event_cadastrarFornecedorActionPerformed

    private void CadastrarMateriaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastrarMateriaActionPerformed
        CadastrarMateriaPrima materia = new CadastrarMateriaPrima();
        materia.setEnabled(true);
        materia.setVisible(true);
        materia.setModal(true);
    }//GEN-LAST:event_CadastrarMateriaActionPerformed

    private void RealizarPedidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RealizarPedidoActionPerformed
        RealizarPedido pedido = new RealizarPedido();
        pedido.setEnabled(true);
        pedido.setVisible(true);
        pedido.setModal(true);
    }//GEN-LAST:event_RealizarPedidoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new TelaInicial().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem CadastrarFuncionario;
    private javax.swing.JMenuItem CadastrarMateria;
    private javax.swing.JMenuItem CadastroCliente;
    private javax.swing.JMenuItem CadastroProduto;
    private javax.swing.JMenuItem RealizarPedido;
    private javax.swing.JMenuItem VendaCliente;
    private javax.swing.JMenuItem cadastrarFornecedor;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu jMenuCadastros;
    // End of variables declaration//GEN-END:variables
}
